package me.chanjar.weixin.mp.bean.template;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;


public class WxMpGsonBuilder {

  public static final GsonBuilder INSTANCE = new GsonBuilder();

  static {
    INSTANCE.disableHtmlEscaping();

    INSTANCE.registerTypeAdapter(WxMpTemplateMessage.class, new WxMpTemplateMessageGsonAdapter());
    INSTANCE.registerTypeAdapter(WxMpTemplateIndustry.class, new WxMpIndustryGsonAdapter());
  }

  public static Gson create() {
    return INSTANCE.create();
  }

}
